import { TokenRequestData } from '@/types/interface'

export type queryUpgradeLogRequestData = TokenRequestData
export type UpdateType = 'Fix' | 'Feature' | 'Optimization'
export interface updateLogDetail {
  upgradeLogId: number
  parentId: number
  type: UpdateType
  title: string
  description: string
  detail?: updateLogDetail[]
}

export interface updateLogParentDetail {
  version: string
  date: string
  featDetail: updateLogDetail[]
  fixDetail: updateLogDetail[]
  optDetail: updateLogDetail[]
}

export interface queryUpgradeLogResponseData {
  year: string
  data: updateLogParentDetail[]
}
export type queryUpgradeLogResponse = ApiResponseData<queryUpgradeLogResponseData[]>
